@keyframes round {
    50%{
        transform: translate(0,-100px) rotate(180deg);
    }
    to{
        transform: rotate(360deg);
    }
}
.box{
    width: 200px;
    height: 200px;
    background-color: rgb(230, 144, 144);
    margin:100px auto;
    
}
.jump:hover{
    animation: round 2s linear infinite  ;
    animation: name duration timing-function delay iteration-count direction fill-mode;
}
@keyframes bubble{
    0%{
        transform:scale(0);
        opacity: 1;
    }
    100%{
        transform:scale(1);
        opacity: 0;
    }
}
.bubble{
    border-radius: 50%;
    background-color: rgb(52, 9, 243);
}
.bubble{
    animation: bubble 1s infinite;
}
.bor{
    border-radius: 50%;
    border:10px solid blue;
    background: none;
    border-top-color: yellow;
}
.load{
    outline: 1px solid black;
    background-color:transparent;
    display: flex;
    justify-content: center;
    align-items: center;
}
.item{
    width: 10px;
    height: 30px;
    background-color: rgb(135, 241, 114);
    animation: loading 1s ease-in infinite;
    margin: 0 2px;
}
.item:nth-child(2){
    animation-delay: 0.1s;
}
.item:nth-child(3){
    animation-delay: 0.2s;
}
.item:nth-child(4){
    animation-delay: 0.3s;
}
.item:nth-child(5){
    animation-delay: 0.4s;
}
@keyframes loading {
    0%{
        transform: scaleY(1);
    }
    25%{
        transform: scaleY(2.5);
    }
    50%{
        transform: scaleY(1);
    }
}
.load2{
    width: 600px;
    background-color: transparent;
    outline: 1px solid black;
    display: flex;
    justify-content: center;
    align-items: center;
    
}
.item2{
    width: 50px;
    height: 50px;
    border-radius: 10px;
    margin: 0 35.5px;
    position: relative;
    transform: rotate(-45deg);
    animation: load2 2s linear  infinite ;
}
.item2::before{
    width: 50px;
    height: 50px;
    border-radius: 10px;
    content: '';
    display: block;
    position: absolute;
    top: -84px;
    background-color: inherit;
    animation: load2-before 2s linear  infinite ;
}
.item2:nth-child(1){
    background-color: rgb(240, 75, 75);
}
.item2:nth-child(2){
    animation-delay: 0.4s;
    background-color: rgb(69, 94, 238);
}
.item2:nth-child(3){
    animation-delay: 0.8s;
    background-color: rgb(47, 243, 29);
}
.item2:nth-child(4){
    animation-delay: 1.2s;
    background-color: rgb(75, 183, 187);
}
/* .item2:nth-child(5){
    background-color: rgb(243, 70, 185);
    animation-delay: 1.6s;
} */
.item2:nth-child(1)::before{
    
}
.item2:nth-child(2)::before{
    animation-delay: 0.4s;
}
.item2:nth-child(3)::before{
    animation-delay: 0.8s;
}
.item2:nth-child(4)::before{
    animation-delay: 1.2s;
}

@keyframes load2{
    
    20%{
        transform: rotate(45deg);
    }
    to{
        transform: rotate(45deg);
    }
}
@keyframes load2-before{
    20%{
        background-color: inherit;
    }
    21%{
        background-color:transparent ;
    }
    to{
        background-color: transparent;
    }
}

@keyframes round2{
    to{
        transform: rotate(360deg);
    }
}
.ball{
    position: relative;
    
}
.ball:hover .item3{
    animation-play-state: running;
}

.item3{
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: rgb(158, 187, 250);
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    margin: auto;
    /* transform: rotate(45deg); */
    transform-origin: -50px -50px;
    animation: round2 2s linear infinite ;
    /* animation-play-state: paused; */
}
.item3:nth-child(2){
    /* 让元素延迟为负数可以解决初始状态的问题 */
    /* animation-delay: 0.4s; */
    animation-delay: -0.4s;
}
.item3:nth-child(3){
    animation-delay: -0.8s;
}
.item3:nth-child(4){
    animation-delay: -1.2s;
}
.item3:nth-child(5){
    animation-delay: -1.6s;
}
